<?php

return [
    /*
    * 公众号
    */
    'official_account' => [
        'default' => [
            'app_id'        => env('WX_NANWANG_APP_ID', ''),         // AppID
            'secret'        => env('WX_NANWANG_APP_SECRET', 'your-app-secret'),    // AppSecret
            'token'         => env('WX_NANWANG_TOKEN', 'wechat_token'),           // Token
            'aes_key'       => env('WX_NANWANG_TOKEN_AES_KEY', ''),                 // EncodingAESKey
            'response_type' => 'array',

            /*
             * OAuth 配置
             *
             * scopes：公众平台（snsapi_userinfo / snsapi_base），开放平台：snsapi_login
             * callback：OAuth授权完成后的回调页地址(如果使用中间件，则随便填写。。。)
             * enforce_https：是否强制使用 HTTPS 跳转
             */
            'oauth'   => [
                 'scopes'        => array_map('trim', explode(',', env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_SCOPES', 'snsapi_base'))),
                 'callback'      => env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_CALLBACK', ''),
                 'enforce_https' => true,
             ],
            'log'           => [
                'level' => 'debug',
                'file'  => storage_path('logs') . date('Y-m-d_') . 'wechat.log',
            ],
        ],
    ],

    'wx_work' => [
        // 请求的路径
        'host'            => env('WX_WORK_APP_HOST', 'https://qyapi.weixin.qq.com'),  //
        // token请求地址
        'token_host'      => env('WX_WORK_APP_ACCESS_TOKEN_HOST', 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s'),
        // 发送应用消息
        'msg_host'        => env('WX_WORK_APP_SEND_MSG_HOST', 'https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=%s&debug=1'),
        'app'             => [
            'id'            => env('WX_WORK_CORPID', ''),
            'push_secret'   => env('WX_WORK_DAILY_PUSH_SECRET', ''),
            'push_agent_id' => env('WX_WORK_DAILY_PUSH_AGENTID', ''),
        ],
        'app_warning'     => [
            'id'            => env('WX_WORK_CORPID', ''),
            'push_secret'   => env('WX_WORK_WARNING_DAILY_PUSH_SECRET', ''),
            'push_agent_id' => env('WX_WORK_WARNING_DAILY_PUSH_AGENTID', ''),
        ],
        'daily_news'      => [
            'id'            => env('WX_WORK_CORPID', ''),
            'push_secret'   => env('WX_WORK_DAILY_NEWS_PUSH_SECRET', ''),
            'push_agent_id' => env('WX_WORK_DAILY_NEWS_PUSH_AGENTID', ''),
        ],
        'wool_default_url'   => env('WOOL_DEFAULT', ''),
        'wool_qingfeng_url'  => env('WOOL_QINGFENG', ''),
        'wool_super_url'     => env('WOOL_SUPER', ''),
    ],

    //南网H5
    'wx_nanwang' => [
        'app_id'        => env('WX_NANWANG_APP_ID', ''),
        'app_secret'    => env('WX_NANWANG_APP_SECRET', ''),
    ],

    //本人H5
    'wx_self' => [
        'app_id'        => env('WX_SELF_APP_ID', ''),
        'app_secret'    => env('WX_SELF_APP_SECRET', ''),
    ],

    'wx_rewrite_api' => env('WX_REWRITE_API', 'http://mp.weixin.qq.com/'),
];
